//
//  ActivityDetailViewController.m
//  UI03_UIControllerHomerwork
//
//  Created by dllo on 16/6/7.
//  Copyright © 2016年 司昌宝. All rights reserved.
//

#import "ActivityDetailViewController.h"
#import "TitleLabel.h"
@interface ActivityDetailViewController ()

@end

@implementation ActivityDetailViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    [self createTitleLabel];
    [self createActivityIcon];
    [self createTime];
    [self createOwner];
    [self createCategory];
    [self createAddress];
    [self creatContent];
    
    
}


-(void)createTime{
    UIView *timeView = [[UIView alloc] initWithFrame:CGRectMake(150, 100, 250, 30)];
    UIImageView *timePictuerImageView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"icon_date_blue.png"]];
    timePictuerImageView.frame = CGRectMake(0, 0, 30, 30);
    UILabel *timeLabel = [[UILabel alloc] initWithFrame:CGRectMake(30, 0, 210, 30)];
    timeLabel.text = @"10-19 18:00 -- 10-19 23:30";
    [timeView addSubview:timeLabel];
    [timeView addSubview:timePictuerImageView];
    
    [self.view addSubview:timeView];
    [timePictuerImageView release];
    [timeLabel release];
    [timeView release];
}

-(void)createOwner{
    UIView *ownerView = [[UIView alloc] initWithFrame:CGRectMake(150, 140, 250, 30)];
    UIImageView *ownerPictuerImageView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"icon_sponsor_blue.png"]];
    ownerPictuerImageView.frame = CGRectMake(0, 0, 30, 30);
    UILabel *ownerLabel = [[UILabel alloc] initWithFrame:CGRectMake(30, 0, 210, 30)];
    ownerLabel.text = @"赵雷";
    [ownerView addSubview:ownerLabel];
    [ownerView addSubview:ownerPictuerImageView];
    
    [self.view addSubview:ownerView];
    [ownerPictuerImageView release];
    [ownerLabel release];
    [ownerView release];

}

-(void)createCategory{
    UIView *categoryView = [[UIView alloc] initWithFrame:CGRectMake(150, 180, 250, 30)];
    UIImageView *categoryPictuerImageView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"icon_catalog_blue.png"]];
    categoryPictuerImageView.frame = CGRectMake(0, 0, 30, 30);
    UILabel *categoryLabel = [[UILabel alloc] initWithFrame:CGRectMake(30, 0, 210, 30)];
    categoryLabel.text = @"类型:音乐";
    [categoryView addSubview:categoryLabel];
    [categoryView addSubview:categoryPictuerImageView];
    
    [self.view addSubview:categoryView];
    [categoryPictuerImageView release];
    [categoryLabel release];
    [categoryView release];
    
}

-(void)createAddress{
    UIView *addressView = [[UIView alloc] initWithFrame:CGRectMake(150, 220, 250, 60)];
    UIImageView *addressPictuerImageView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"icon_spot_blue.png"]];
    addressPictuerImageView.frame = CGRectMake(0, 10, 30, 30);
    UILabel *addressLabel = [[UILabel alloc] initWithFrame:CGRectMake(30, 0, 220, 60)];
    addressLabel.text = @"北京 东城区 北京市东城区和平里西街79号糖果大楼三层";
    addressLabel.numberOfLines = 2;
    [addressView addSubview:addressLabel];
    [addressView addSubview:addressPictuerImageView];
    
    [self.view addSubview:addressView];
    [addressPictuerImageView release];
    [addressLabel release];
    [addressView release];
    
}

-(void)creatContent{
    UIView *contentView = [[UIView alloc] initWithFrame:CGRectMake(10, 300, [UIScreen mainScreen].bounds.size.width - 20, [UIScreen mainScreen].bounds.size.height - 300)];
    UILabel *activityLabel =[[UILabel alloc] initWithFrame:CGRectMake(0, 0, 200, 30)];
    activityLabel.text = @"活动介绍";
    activityLabel.font = [UIFont systemFontOfSize:30.0];
    [contentView addSubview:activityLabel];
    UILabel *otherLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, 30, [UIScreen mainScreen].bounds.size.width - 20, [UIScreen mainScreen].bounds.size.height - 370)];
    otherLabel.text = @"【新专辑2014全国巡演合作咨询】\r\n@蒋步庭\r\n微博http://weibo.com/jiangbuting\r\n豆瓣http://www.douban.com/people/jiangjin/\r\nQQ1193657158\r\n邮箱1193657158@qq.com\r\n手机18610967776\r\n【赵雷巡演两千人群241855614】\r\n【赵雷歌迷北京活动群189347699】\r\n\r\n————————————————————————————\r\n\r\n赵雷2014新专辑《吉姆餐厅》专辑首发演出，北京站 \r\n演出时间：10月19日 \r\n演出地点：雍和宫糖果三层 \r\n售票平台：百度音乐人\r\n开票时间：7月19日 24:00\r\n门票价格：120元\r\n售票链接：http://y.baidu.com/event/10155\r\n\r\n————————————————————————————\r\n每个人的心中都有一家≪吉姆餐厅≫\r\n 2011年10月，\r\n 之后的那些秋夜！\r\n 我总是习惯从工作室出来之后坐在隔壁胡同的清真餐厅里点几个肉串喝瓶啤酒，吃完，一个人骑着小摩托车，无拘束的，回家睡觉。\r\n 因为想念母亲至深，导致我总有一种钻心的孤独。每当天色暗下来，每当一切静下来，眼前就会浮现从前的一幕幕。\r\n 秋夜带给我的凄凉是任何喧闹都无法覆盖的。餐厅里生意很好，老板、服务员们和我都很熟悉，就像我对秋天一样的熟悉与敏感。突然我觉得这家餐厅就像我的家，它像家人一样在为我准备着晚餐，那个嘎小子服务员总是对着我笑。顺着这个突如其来的怪想法，我跳了出来：我坐在旁边的椅子上看着那个正在端着酒杯流泪的男人，不知道该和他说些什么，我能理解他的悲伤，却无法为他清唱一支歌。我为自己起了个新名字，那是从母亲的名字延续而来的。“米尔”！这名字把我和母亲绑在一起。然而我又很讨厌这名字，它提醒着我，催促我走出那片时光乐土。我为这个餐厅也起了新名字“吉母餐厅”，因为在这里吃饭是要付钱的，所以“吉母”变成“吉姆”。\r\n 所有的餐厅都是吉姆餐厅，它是从“家”演变过来的另一个似家的环境，隐匿于心。每天都会有很多人坐在吉姆餐厅里用餐，但是你们是否像我一样怀念过去，怀念那些陪伴我们走过的故人。 \r\n 我不知道自己今后的命运是什么，但我会把吉姆餐厅装在心中，像母亲告诉我的那样，一直走下去。\r\n\r\n 赵雷\r\n 2014年6月24日";
    otherLabel.numberOfLines = 16;
    [contentView addSubview:otherLabel];
    
    [self.view addSubview:contentView];
    [otherLabel release];
    [activityLabel release];
    [contentView release];
}




-(void)createTimePicture{
    UIImageView *timePictuerImageView = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"icon_date_blue.png"]];
    timePictuerImageView.frame = CGRectMake(150, 110, 20, 20);
    [self.view addSubview:timePictuerImageView];
    
    [timePictuerImageView release];
}

-(void)createActivityIcon{
    UIImage *image = [UIImage imageNamed:@"Jimucanting.jpg"];
    UIImageView *imageView = [[UIImageView alloc] initWithImage:image];
    imageView.frame = CGRectMake(10, 100, 130, 190);
    [self.view addSubview:imageView];
}

-(void)createTitleLabel {
    TitleLabel *titleLabel = [[TitleLabel alloc] initWithFrame:CGRectMake(10, 0, 414, 100)];
    [self.view addSubview:titleLabel];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
